package com.glela.platform.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.glela.platform.model.UserFans;

public interface UserFansMapper {

	// public int selectUserFansCount(long userId);
	/**
	 * 查询
	 */
	public List<UserFans> selectUserFans(@Param("userId") Long userId, @Param("page") int page,
			@Param("pageSize") int pageSize);

	/**
	 * 关注
	 */
	public int insertUserFans(@Param("talentId") long talentId, @Param("userId") long userId);

	/**
	 * 取消关注
	 */
	public int deleteUserFans(@Param("talentId") long talentId, @Param("userId") long userId);

	/**
	 * 查询
	 */
	public int selectUserFansByUserIdAndTalentID(@Param("talentId") long talentId, @Param("userId") long userId);

	public List<Long> selectTalentIdListByUserId(@Param("userId") Long userId);

}
